package ace.cmp.spring.data.jdbc.querydsl.rsql.autoconfig;

import ace.cmp.spring.data.jdbc.querydsl.rsql.core.RsqlQuerydslParser;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author caspar
 * @date 2023/4/14 14:10
 */
@Configuration
public class RsqlQuerydslAutoConfig {
  @Bean
  @ConditionalOnMissingBean
  public RsqlQuerydslParser rsqlQuerydslParser() {
    return RsqlQuerydslParser.INSTANCE;
  }
}
